#pragma once
#include <string>
using std::string;
using std::pair;

class SocketIO{
public:
    explicit SocketIO(int fd);
    ~SocketIO();
    pair<string, int> readTrain();
    void sendTrain(const string &msg, int id);
private:
    int _fd;
};
